<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WeiboAndroid: com.example.hp.weibo.WeiBoActivity类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WeiboAndroid
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">微博</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1hp.html">hp</a></li><li class="navelem"><a class="el" href="namespacecom_1_1example_1_1hp_1_1weibo.html">weibo</a></li><li class="navelem"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html">WeiBoActivity</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.example.hp.weibo.WeiBoActivity类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 com.example.hp.weibo.WeiBoActivity 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_adapter.html">WBAdapter</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_holder.html">WBHolder</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a91f883cff270a6fbff576522148eedec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a91f883cff270a6fbff576522148eedec">parseJSONWithGSON</a> (String jsonDate)</td></tr>
<tr class="separator:a91f883cff270a6fbff576522148eedec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:af9f15743a0362cd7ae3cd6b3e7699946"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#af9f15743a0362cd7ae3cd6b3e7699946">onCreate</a> (Bundle savedInstanceState)</td></tr>
<tr class="separator:af9f15743a0362cd7ae3cd6b3e7699946"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a1d8cf885d7ec05dde5aae31f68c06997"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a1d8cf885d7ec05dde5aae31f68c06997">initData</a> ()</td></tr>
<tr class="separator:a1d8cf885d7ec05dde5aae31f68c06997"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab11372694bad211aab36b286fe914151"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#ab11372694bad211aab36b286fe914151">webData</a> (String web)</td></tr>
<tr class="separator:ab11372694bad211aab36b286fe914151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad459aaca86524e121d242743f0a2554"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#aad459aaca86524e121d242743f0a2554">refreshData</a> ()</td></tr>
<tr class="separator:aad459aaca86524e121d242743f0a2554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a73fbb56ecc2188da8990e0247722aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a8a73fbb56ecc2188da8990e0247722aa">show</a> (final String response)</td></tr>
<tr class="separator:a8a73fbb56ecc2188da8990e0247722aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca8731882a7605879d7dfb1527a7cd7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#aca8731882a7605879d7dfb1527a7cd7f">zan</a> (String weibonum, final <a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_holder.html">WBHolder</a> holder)</td></tr>
<tr class="separator:aca8731882a7605879d7dfb1527a7cd7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af59065ab7266c29659d344fe74d34018"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#af59065ab7266c29659d344fe74d34018">guanzhu</a> (String weibonum, String flag)</td></tr>
<tr class="separator:af59065ab7266c29659d344fe74d34018"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ae894c7bc852e9e9d29e927f92ceba775"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#ae894c7bc852e9e9d29e927f92ceba775">isRemen</a> = true</td></tr>
<tr class="memdesc:ae894c7bc852e9e9d29e927f92ceba775"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否为热门  <a href="#ae894c7bc852e9e9d29e927f92ceba775">更多...</a><br /></td></tr>
<tr class="separator:ae894c7bc852e9e9d29e927f92ceba775"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d921a79314690791e1511fffa82a5f4"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a6d921a79314690791e1511fffa82a5f4">WebHead</a> = &quot;image/head.jpg&quot;</td></tr>
<tr class="memdesc:a6d921a79314690791e1511fffa82a5f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认头像  <a href="#a6d921a79314690791e1511fffa82a5f4">更多...</a><br /></td></tr>
<tr class="separator:a6d921a79314690791e1511fffa82a5f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae25785ecb7488cb3cbf5d45c17d382fa"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#ae25785ecb7488cb3cbf5d45c17d382fa">Phone</a></td></tr>
<tr class="memdesc:ae25785ecb7488cb3cbf5d45c17d382fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">手机号  <a href="#ae25785ecb7488cb3cbf5d45c17d382fa">更多...</a><br /></td></tr>
<tr class="separator:ae25785ecb7488cb3cbf5d45c17d382fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15c9802d470e333ecde339f2b202a208"><td class="memItemLeft" align="right" valign="top">RecyclerView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a15c9802d470e333ecde339f2b202a208">_lstWB</a></td></tr>
<tr class="memdesc:a15c9802d470e333ecde339f2b202a208"><td class="mdescLeft">&#160;</td><td class="mdescRight">list控件  <a href="#a15c9802d470e333ecde339f2b202a208">更多...</a><br /></td></tr>
<tr class="separator:a15c9802d470e333ecde339f2b202a208"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea43ac00379cc9f3f3bdddd1f7d6701d"><td class="memItemLeft" align="right" valign="top">SwipeRefreshLayout&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#aea43ac00379cc9f3f3bdddd1f7d6701d">_swipeRefresh</a></td></tr>
<tr class="memdesc:aea43ac00379cc9f3f3bdddd1f7d6701d"><td class="mdescLeft">&#160;</td><td class="mdescRight">下拉刷新控件  <a href="#aea43ac00379cc9f3f3bdddd1f7d6701d">更多...</a><br /></td></tr>
<tr class="separator:aea43ac00379cc9f3f3bdddd1f7d6701d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd925be7b812dbf376ac3df9910c4372"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#afd925be7b812dbf376ac3df9910c4372">_imgAdd</a></td></tr>
<tr class="memdesc:afd925be7b812dbf376ac3df9910c4372"><td class="mdescLeft">&#160;</td><td class="mdescRight">发表微博图片  <a href="#afd925be7b812dbf376ac3df9910c4372">更多...</a><br /></td></tr>
<tr class="separator:afd925be7b812dbf376ac3df9910c4372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a060d8a9f5f79d39bc466b160c5f22578"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_weibo_info.html">WeiboInfo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a060d8a9f5f79d39bc466b160c5f22578">_data</a></td></tr>
<tr class="memdesc:a060d8a9f5f79d39bc466b160c5f22578"><td class="mdescLeft">&#160;</td><td class="mdescRight">数据  <a href="#a060d8a9f5f79d39bc466b160c5f22578">更多...</a><br /></td></tr>
<tr class="separator:a060d8a9f5f79d39bc466b160c5f22578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e7ce846e53d82e50a03a04c509e46f7"><td class="memItemLeft" align="right" valign="top">TextView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a9e7ce846e53d82e50a03a04c509e46f7">_tvGuanzhu</a></td></tr>
<tr class="memdesc:a9e7ce846e53d82e50a03a04c509e46f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">关注文本框  <a href="#a9e7ce846e53d82e50a03a04c509e46f7">更多...</a><br /></td></tr>
<tr class="separator:a9e7ce846e53d82e50a03a04c509e46f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3f31151426792319cba655cf8313885"><td class="memItemLeft" align="right" valign="top">TextView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#af3f31151426792319cba655cf8313885">_tvRemen</a></td></tr>
<tr class="memdesc:af3f31151426792319cba655cf8313885"><td class="mdescLeft">&#160;</td><td class="mdescRight">热门文本框  <a href="#af3f31151426792319cba655cf8313885">更多...</a><br /></td></tr>
<tr class="separator:af3f31151426792319cba655cf8313885"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cc0b19fb998c9dad3c2b3465faffd52"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a5cc0b19fb998c9dad3c2b3465faffd52">_imgWeibo</a></td></tr>
<tr class="memdesc:a5cc0b19fb998c9dad3c2b3465faffd52"><td class="mdescLeft">&#160;</td><td class="mdescRight">微博图片  <a href="#a5cc0b19fb998c9dad3c2b3465faffd52">更多...</a><br /></td></tr>
<tr class="separator:a5cc0b19fb998c9dad3c2b3465faffd52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7165d5df73946c784b3cd99053156619"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a7165d5df73946c784b3cd99053156619">_imgFaxian</a></td></tr>
<tr class="memdesc:a7165d5df73946c784b3cd99053156619"><td class="mdescLeft">&#160;</td><td class="mdescRight">发现图片  <a href="#a7165d5df73946c784b3cd99053156619">更多...</a><br /></td></tr>
<tr class="separator:a7165d5df73946c784b3cd99053156619"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6a06a65d50139229262c77d45a5d58"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a7b6a06a65d50139229262c77d45a5d58">_imgXiaoxi</a></td></tr>
<tr class="memdesc:a7b6a06a65d50139229262c77d45a5d58"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息图片  <a href="#a7b6a06a65d50139229262c77d45a5d58">更多...</a><br /></td></tr>
<tr class="separator:a7b6a06a65d50139229262c77d45a5d58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2278709d842fda095e2ad13b3338a0c"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#af2278709d842fda095e2ad13b3338a0c">_imgShiping</a></td></tr>
<tr class="memdesc:af2278709d842fda095e2ad13b3338a0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">视屏图片  <a href="#af2278709d842fda095e2ad13b3338a0c">更多...</a><br /></td></tr>
<tr class="separator:af2278709d842fda095e2ad13b3338a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1524798ed2c846041827b7eab90e3c6e"><td class="memItemLeft" align="right" valign="top">ImageView&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#a1524798ed2c846041827b7eab90e3c6e">_imgWo</a></td></tr>
<tr class="memdesc:a1524798ed2c846041827b7eab90e3c6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">我图片  <a href="#a1524798ed2c846041827b7eab90e3c6e">更多...</a><br /></td></tr>
<tr class="separator:a1524798ed2c846041827b7eab90e3c6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af130f2d6bae88b3da08976eabc9bc1ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_adapter.html">WBAdapter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity.html#af130f2d6bae88b3da08976eabc9bc1ad">_adapter</a></td></tr>
<tr class="memdesc:af130f2d6bae88b3da08976eabc9bc1ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">适配器  <a href="#af130f2d6bae88b3da08976eabc9bc1ad">更多...</a><br /></td></tr>
<tr class="separator:af130f2d6bae88b3da08976eabc9bc1ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>微博主页 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af59065ab7266c29659d344fe74d34018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af59065ab7266c29659d344fe74d34018">&#9670;&nbsp;</a></span>guanzhu()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.guanzhu </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>weibonum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>flag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>关注或取消关注 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">weibonum</td><td>微博号 </td></tr>
    <tr><td class="paramname">flag</td><td>标记 </td></tr>
  </table>
  </dd>
</dl>
<p>向服务器提交数据</p>
<p>联网失败，提示用户网络异常</p>
<p>获取返回值</p>
<p>转化为int形式</p>
<p>返回值为1，提示用户关注成功，刷新界面</p>
<p>返回值为2，提示用户取消关注，刷新界面</p>
<p>返回值为0，提示用户请再点一次 </p>

</div>
</div>
<a id="a1d8cf885d7ec05dde5aae31f68c06997"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d8cf885d7ec05dde5aae31f68c06997">&#9670;&nbsp;</a></span>initData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.initData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>初始化数据 </p>
<p>获取网络数据 </p>

</div>
</div>
<a id="af9f15743a0362cd7ae3cd6b3e7699946"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9f15743a0362cd7ae3cd6b3e7699946">&#9670;&nbsp;</a></span>onCreate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.onCreate </td>
          <td>(</td>
          <td class="paramtype">Bundle&#160;</td>
          <td class="paramname"><em>savedInstanceState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取手机号</p>
<p>初始化控件</p>
<p>下拉刷新事件</p>
<p>进行刷新</p>
<p>发表微博图片点击事件</p>
<p>微博图片点击事件</p>
<p>进行刷新</p>
<p>视频图片点击事件</p>
<p>发现图片点击事件</p>
<p>消息图片点击事件</p>
<p>我图片点击事件</p>
<p>关注文本框点击事件</p>
<p>改变界面</p>
<p>热门文本框点击事件</p>
<p>改变界面</p>
<p>初始化数据</p>
<p>布局管理器</p>
<p>适配器 </p>

</div>
</div>
<a id="a91f883cff270a6fbff576522148eedec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91f883cff270a6fbff576522148eedec">&#9670;&nbsp;</a></span>parseJSONWithGSON()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.parseJSONWithGSON </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>jsonDate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>解析数据 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">jsonDate</td><td>数据 </td></tr>
  </table>
  </dd>
</dl>
<p>根据WeiboInfo类格式进行解析</p>
<p>将数据装入列表</p>
<p>刷新页面 </p>

</div>
</div>
<a id="aad459aaca86524e121d242743f0a2554"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad459aaca86524e121d242743f0a2554">&#9670;&nbsp;</a></span>refreshData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.refreshData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>刷新数据 </p>
<p>获取热门数据</p>
<p>获取关注数据</p>
<p>刷新 </p>

</div>
</div>
<a id="a8a73fbb56ecc2188da8990e0247722aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a73fbb56ecc2188da8990e0247722aa">&#9670;&nbsp;</a></span>show()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.show </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>response</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>根据不同操作，给用户不同提示</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">response</td><td>要显示的值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab11372694bad211aab36b286fe914151"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab11372694bad211aab36b286fe914151">&#9670;&nbsp;</a></span>webData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.webData </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>web</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取服务器数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">web</td><td>网址 </td></tr>
  </table>
  </dd>
</dl>
<p>清空数据</p>
<p>向服务器提交数据</p>
<p>联网失败，提示用户网络异常</p>
<p>获取返回值</p>
<p>进行解析 </p>

</div>
</div>
<a id="aca8731882a7605879d7dfb1527a7cd7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca8731882a7605879d7dfb1527a7cd7f">&#9670;&nbsp;</a></span>zan()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.example.hp.weibo.WeiBoActivity.zan </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>weibonum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">final <a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_holder.html">WBHolder</a>&#160;</td>
          <td class="paramname"><em>holder</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点赞或取消赞 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">weibonum</td><td>微博号 </td></tr>
    <tr><td class="paramname">holder</td><td></td></tr>
  </table>
  </dd>
</dl>
<p>向服务器提交数据</p>
<p>联网失败，提示用户网络异常</p>
<p>获取返回值</p>
<p>转化为int形式</p>
<p>返回值为1，进行点赞</p>
<p>修改界面</p>
<p>返回值为2，进行取消点赞</p>
<p>修改界面</p>
<p>返回值为0，提示用户请在点一次 </p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="af130f2d6bae88b3da08976eabc9bc1ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af130f2d6bae88b3da08976eabc9bc1ad">&#9670;&nbsp;</a></span>_adapter</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_wei_bo_activity_1_1_w_b_adapter.html">WBAdapter</a> com.example.hp.weibo.WeiBoActivity._adapter</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>适配器 </p>

</div>
</div>
<a id="a060d8a9f5f79d39bc466b160c5f22578"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a060d8a9f5f79d39bc466b160c5f22578">&#9670;&nbsp;</a></span>_data</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcom_1_1example_1_1hp_1_1weibo_1_1_weibo_info.html">WeiboInfo</a>&gt; com.example.hp.weibo.WeiBoActivity._data</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>数据 </p>

</div>
</div>
<a id="afd925be7b812dbf376ac3df9910c4372"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd925be7b812dbf376ac3df9910c4372">&#9670;&nbsp;</a></span>_imgAdd</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgAdd</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>发表微博图片 </p>

</div>
</div>
<a id="a7165d5df73946c784b3cd99053156619"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7165d5df73946c784b3cd99053156619">&#9670;&nbsp;</a></span>_imgFaxian</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgFaxian</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>发现图片 </p>

</div>
</div>
<a id="af2278709d842fda095e2ad13b3338a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2278709d842fda095e2ad13b3338a0c">&#9670;&nbsp;</a></span>_imgShiping</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgShiping</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>视屏图片 </p>

</div>
</div>
<a id="a5cc0b19fb998c9dad3c2b3465faffd52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cc0b19fb998c9dad3c2b3465faffd52">&#9670;&nbsp;</a></span>_imgWeibo</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgWeibo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>微博图片 </p>

</div>
</div>
<a id="a1524798ed2c846041827b7eab90e3c6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1524798ed2c846041827b7eab90e3c6e">&#9670;&nbsp;</a></span>_imgWo</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgWo</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>我图片 </p>

</div>
</div>
<a id="a7b6a06a65d50139229262c77d45a5d58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b6a06a65d50139229262c77d45a5d58">&#9670;&nbsp;</a></span>_imgXiaoxi</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ImageView com.example.hp.weibo.WeiBoActivity._imgXiaoxi</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息图片 </p>

</div>
</div>
<a id="a15c9802d470e333ecde339f2b202a208"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15c9802d470e333ecde339f2b202a208">&#9670;&nbsp;</a></span>_lstWB</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RecyclerView com.example.hp.weibo.WeiBoActivity._lstWB</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>list控件 </p>

</div>
</div>
<a id="aea43ac00379cc9f3f3bdddd1f7d6701d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea43ac00379cc9f3f3bdddd1f7d6701d">&#9670;&nbsp;</a></span>_swipeRefresh</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SwipeRefreshLayout com.example.hp.weibo.WeiBoActivity._swipeRefresh</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>下拉刷新控件 </p>

</div>
</div>
<a id="a9e7ce846e53d82e50a03a04c509e46f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e7ce846e53d82e50a03a04c509e46f7">&#9670;&nbsp;</a></span>_tvGuanzhu</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TextView com.example.hp.weibo.WeiBoActivity._tvGuanzhu</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>关注文本框 </p>

</div>
</div>
<a id="af3f31151426792319cba655cf8313885"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3f31151426792319cba655cf8313885">&#9670;&nbsp;</a></span>_tvRemen</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TextView com.example.hp.weibo.WeiBoActivity._tvRemen</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>热门文本框 </p>

</div>
</div>
<a id="ae894c7bc852e9e9d29e927f92ceba775"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae894c7bc852e9e9d29e927f92ceba775">&#9670;&nbsp;</a></span>isRemen</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.example.hp.weibo.WeiBoActivity.isRemen = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>是否为热门 </p>

</div>
</div>
<a id="ae25785ecb7488cb3cbf5d45c17d382fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae25785ecb7488cb3cbf5d45c17d382fa">&#9670;&nbsp;</a></span>Phone</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.example.hp.weibo.WeiBoActivity.Phone</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>手机号 </p>

</div>
</div>
<a id="a6d921a79314690791e1511fffa82a5f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d921a79314690791e1511fffa82a5f4">&#9670;&nbsp;</a></span>WebHead</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String com.example.hp.weibo.WeiBoActivity.WebHead = &quot;image/head.jpg&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>默认头像 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>G:/AndroidWork/WeiBo/app/src/main/java/com/example/hp/weibo/<a class="el" href="_wei_bo_activity_8java.html">WeiBoActivity.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
